$(function(){
    $('.del_article').click(function(){
        var msg = "删除分类；分类下的文章一并删除\n\n请确认！";
        if (confirm(msg)==true){
            var uri =$(this).attr('data-url');
            var id = $(this).attr('data-id');
            var data = {article_type_id:id};
            ajaxPost(uri, $(".del_article"), data, function(r){
                $(".del_article").removeAttr("disabled");
                location.href = r.url;
            });
        }else{
            return false;
        }
    });

});